package com.example.pertecttime.fragent.timeline;

import com.example.pertecttime.base.BaseModel;
import com.example.pertecttime.base.BasePresenter;
import com.example.pertecttime.base.BaseResult;
import com.example.pertecttime.base.Baseview;
import com.example.pertecttime.entity.User;
import com.example.pertecttime.entity.test;

import rx.Observable;

/**
 * Created by 半生瓜 on 2017/7/21.
 */

public interface TimelineContract {
    interface  Model extends BaseModel{
        public Observable<BaseResult<test>> gettest(test test);
        public Observable<BaseResult<User>> login(User user);
    }

    interface View extends Baseview{
        public abstract void onresult(String a);
    }

    abstract class Presenter extends BasePresenter<TimelineContract.Model,TimelineContract.View>{
        abstract void dotest(test t);
        abstract void dologin(User t);
    }
}
